.theme(@maincolor: #3f6ebc, @subcolor: #3a5d98, @activecolor: #2cc6bb, @blueBtn: #5995d8) {
  .main-header {
    background-color: @maincolor !important;
  }
  .main-sidebar {
    background-color: @subcolor !important;
  }
  .nav-second-level {
    background-color: lighten(@subcolor, 3%) !important;
  }
  .main-sidebar .navbar-collapse .nav > li {
    padding: 0;
    box-shadow: inset 0px 1px 0px darken(@subcolor, 2%) !important;
  }
  .ake_btn_blue {
    // background-color: lighten(@maincolor, 5%) !important;
    background-color: @blueBtn !important;
  }
  .ake_btn_text {
    background-color: #fff !important;
    color: @blueBtn !important;
    border: 1px solid @blueBtn !important;
  }
  .ake_btn_text:not([disabled]):hover {
    background-color: @blueBtn !important;
    color: #fff !important;
  }
  .wrapperBox .contentBox .content .colBox a {
    color: @blueBtn !important;
    text-decoration: none;
    margin-left: 10px;
  }
  .modal-container .modal-header {
    background-color: @blueBtn !important;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
  }
  .dialog-wrapper .dialog-header {
    width: 100%;
    text-align: center;
    border-radius: 4px 4px 0 0;
    background-color: @blueBtn !important;
    padding-left: 16px;
    padding-right: 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
  }
  .switch-box .switch-toolbar {
    background-color: @blueBtn !important;
    opacity: 0.5;
  }
  .switch-box .switch-toolbar:hover {
    background-color: @blueBtn !important;
  }
  .pagination > li > a,
  .pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 8px;
    line-height: 1.42857143;
    text-decoration: none;
    color: @blueBtn;
    background-color: #fff;
    border: 1px solid #dddddd;
    margin-left: -1px;
    cursor: pointer;
  }
  item a.active {
    background-color: @maincolor !important;
  }
  .icheck-icon:checked {
    background-color: @maincolor !important;
    border: 0;
    box-shadow: none;
  }
  .tab-wrapper .list-inline li.active {
    background-color: @activecolor !important;
  }
  .main-sidebar .navbar-collapse .nav > li.active > a {
    padding-left: 26px;
    border-left: 4px solid lighten(@activecolor, 5%) !important;
  }
  .main-sidebar .navbar-collapse .nav.nav-second-level > li.active > a {
    border-left: none !important;
  }
  .navbar .menu-inner-box .menu-item:hover,
  .navbar .menu-inner-box .menu-item.active {
    box-shadow: inset 0px -5px 0px darken(@activecolor, 5%) !important;
  }
  .main-sidebar .navbar-collapse .nav > li .nav-second-level > li.active > a {
    background-color: darken(@subcolor, 10%) !important;
    border-left: 0;
  }
  .navbar {
    .more-item {
      background: linear-gradient(to left, rgba(255, 255, 255, 0.26), @maincolor);
    }
    .prev-item {
      background: linear-gradient(to left, @maincolor, rgba(255, 255, 255, 0.26));
    }
  } // .navbar .more-item:hover {
  //   background-color: darken(@maincolor, 10%) !important;
  // }
  .btnbar .btn-item a:hover,
  .btnbar .btn-item a.active {
    background-color: darken(@maincolor, 10%) !important;
  }
  .btnbar .btn-item a:hover,
  .btnbar .btn-item a.active {
    background-color: darken(@maincolor, 10%) !important;
  }
  .main-sidebar .navbar-collapse .nav > li:hover,
  .main-sidebar .navbar-collapse .nav > li:focus,
  .main-sidebar .navbar-collapse .nav > li.active {
    background-color: darken(@subcolor, 2%) !important;
  }
  .tree-box .tree-search-header .input-group-addon {
    color: #fff;
    background-color: @maincolor !important;
    border-color: @maincolor !important;
  }
  .tree-box .ztree li span.button.chk.checkbox_true_full + a > span {
    color: @maincolor !important;
  }
  .search-header-wrapper .show-more-trigger {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    color: @maincolor !important;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
  }
  .search-header-wrapper .show-more-trigger:hover {
    color: @maincolor !important;
  }
  .tree-box .ztree li a.curSelectedNode,
  .tree-box .ztree li a:hover {
    padding-top: 1px;
    background: none;
    border: 0;
    text-decoration: none;
    color: @maincolor !important;
  }
  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: @maincolor !important;
    border-color: @maincolor !important;
  }
  .el-checkbox__inner:hover {
    border-color: @maincolor !important;
  }
  .el-radio__input.is-checked + .el-radio__label {
    color: @maincolor !important;
  }
  .el-radio__input.is-checked .el-radio__inner {
    border-color: @maincolor !important;
    background: @maincolor !important;
  }
  .el-select-dropdown__item.selected {
    color: @maincolor !important;
    font-weight: 700;
  }
  .el-range-editor.is-active,
  .el-range-editor.is-active:hover {
    border-color: @maincolor !important;
  } //翻页统一颜色
  .pagination > li > a,
  .pagination > li > span {
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #dddddd !important;
  }
  .pagination > li > a:hover,
  .pagination > li > span:hover,
  .pagination > li > a:focus,
  .pagination > li > span:focus {
    color: #fff !important;
    background-color: #ccc !important;
    border-color: #ccc !important;
  }
  .pagination > li.disabled:hover a,
  .pagination > li.disabled:focus a {
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #dddddd !important;
  }
  .pagination > .active > a,
  .pagination > .active > span,
  .pagination > .active > a:hover,
  .pagination > .active > span:hover,
  .pagination > .active > a:focus,
  .pagination > .active > span:focus {
    color: #fff !important;
    background-color: #ccc !important;
    border-color: #ccc !important;
  }
  .ake_btn_text[disabled],
  .ake_btn_text.disabled {
    cursor: not-allowed;
    filter: alpha(opacity=5);
    box-shadow: none;
    opacity: 0.5;
  }
}

.theme-default {
  .theme(); //默认的样式
}

.theme-green {
  .theme(#16baa8, #2a3d46, #f5ba7b, #19d1bd);
}
